home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
REmovido
/
Esportes
/
Board.swf
/
scripts
/
DefineSprite_144
/
frame_5
/
DoAction.as
Wrap
Text File
|
2006-06-13
|
1KB
|
52 lines
skiY = _Y + skiSpeed;
rampX = _X - getProperty("../ramp", _X);
rampY = _Y - getProperty("../ramp", _Y);
bigrampX = _X - getProperty("../bigramp", _X);
bigrampY = _Y - getProperty("../bigramp", _Y);
if(skijump == "0" and (- "80" < bigrampX and bigrampX < - "20" and - "20" < bigrampY and bigrampY < "50" or - "60" < rampX and rampX < - "10" and - "20" < rampY and rampY < "50"))
{
skijump = "1";
tellTarget("skieranim")
{
gotoAndPlay(7);
}
}
crashX = _X - getProperty("../trail1", _X);
crashY = _Y - getProperty("../trail1", _Y);
if(crashX < - "30" and - "70" < crashX and crashY < "10" and - "30" < crashY and eval("../trail1:jumpscale") < "120" and "150" < eval("../trail1:restart"))
{
tellTarget("../trail1/boardoanim")
{
gotoAndStop(11);
}
tellTarget("../trail1")
{
gotoAndPlay(25);
}
}
if(skiY < "100")
{
_Y = skiY;
gotoAndPlay(4);
}
else if(skijump == "0")
{
skiDirection = "1" - random("3");
tellTarget("skieranim")
{
if(eval("../:skiDirection") < "0")
{
gotoAndPlay(2);
}
else if("0" < eval("../:skiDirection"))
{
gotoAndPlay(4);
}
else
{
gotoAndStop(1);
}
}
gotoAndPlay(10);
}